setUserAttributeISODate

fun setUserAttributeISODate(context: Context, attributeName: String, attributeValue: String, appId: String? = null, attributeLevel: UserAttributeLevel = UserAttributeLevel.PROJECT)

Set a date type user attribute for the current user.

Supported format - yyyy-MM-dd|yyyyMMdd[T(hh:mm[:ss.sss]|hhmm[ss.sss])]?[Z|+-hh:mm]]

Since

12.0.00

Parameters

attributeName

User attribute name

attributeValue

User attribute value

appId

Account identifier, APP ID on the MoEngage Dashboard. If null, default instance will be used

attributeLevel

level at which the attribute has to be set

Throws

if the attribute level is UserAttributeLevel.PORTFOLIO but the project id is not configured during initialisation